﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.ViewModels.EmployeesDisplayModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="mc_title">Employee Manager</p>
        <div class="content-box"><!-- Start Content Box -->
        <%--<div class="content-box-header">
			<form action="">
				Enter to Search :&nbsp;&nbsp;<input type="text" name="department"/>
				<input type="submit" value="Search" class="cbh_button" />
			</form>
		</div>--%>
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
            
                <table width="100%">
                    <thead style="color:#333333;">
				        <tr>
                            <%--<th><input class="check-all" type="checkbox" /></th>--%>
                             <th>S.No</th>
					         <th>
                                User Name
                            </th>
                            <th>
                                Employee Name
                            </th>
                            <th>
                                Birth Day
                            </th>
                            <th>
                                Sex
                            </th>
                            <th>
                                Email
                            </th>
                            <th>
                                Phone
                            </th>
                            <th></th>
				        </tr>
								
			        </thead>
                    <tfoot>
                        <tr>
					        <td colspan="6">
						        <%--<div class="bulk-actions align-left">
							        <select name="dropdown">
								        <option value="option1">Choose an action...</option>
								        <option value="option2">Edit</option>
								        <option value="option3">Delete</option>
							        </select>
							        <a class="button" href="#">Apply to selected</a>
						        </div>--%>
										
						        <div class="pagination">
							        <% Html.RenderPartial("Pager", Model.PagerModel); %>
						        </div> <!-- End .pagination -->
						        <div class="clear"></div>
					        </td>
				        </tr>
                    </tfoot>
                <tbody>
                <%int i = 0; %>
                <% foreach (var item in Model.Employees) { %>
                    <tr>
                        <td><input type="checkbox" /></td>
                        <% i++.ToString(); %>
                        <td>
                            <%: item.aspnet_Users.UserName %>
                        </td>
                        <td>
                            <%: item.FullName %>
                        </td>
                        <td>
                            <%: item.BirthDate %>
                        </td>
                        <td>
                            <%: item.Sex %>
                        </td>
                        <td>
                            <%: Membership.GetUser(item.aspnet_Users.UserName).Email %>
                        </td>
                        <td>
                            <%: item.Phone %>
                        </td>
                        <td align="right" style="text-align: right; width: 100px;">
                            <a href="<%: Url.Action("Edit", new { id = item.EmployeeID}) %>" title="Edit" >
                            <img src="../../Content/images/icons/pencil.png" alt="Edit" />
                            </a>
                            <a href="<%: Url.Action("Delete", new { id = item.EmployeeID}) %>" title="Delete" >
                                <img src="../../Content/images/icons/cross.png" alt="Delete" />
                            </a>	
			                <a href="<%: Url.Action("Details", new { id = item.EmployeeID}) %>" title="Details" >
                                <img src="../../Content/images/icons/hammer_screwdriver.png" alt="Details" />
                            </a>
                        </td>
                    </tr>
                <% } %>
                </tbody>
                </table>
            </div>
        </div>
    </div>
    <p>
        <a class="button" href="<%: Url.Action("Create") %>" title="Create new" >Create New </a>
    </p>

</asp:Content>
